from django.db import models


# Create your models here.
class Student(models.Model):
    # 加入一下三行代码
    class Meta:
        # 设置student的别名
        verbose_name = '学生'
        verbose_name_plural = '班级'

    t_name = models.CharField("名字", max_length=30, null=True)
    t_city = models.CharField("所处城市", max_length=30, null=True)
    t_age = models.CharField("年龄", max_length=30, null=True)
    t_sex = models.CharField("性别", max_length=30, null=True)
    t_address = models.CharField("地址", max_length=300, null=True)


